﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Configuration;

public static class Config
{

    public static int MaxUploadSize
    {
        get
        {
            string str = ConfigurationManager.AppSettings["TamanhoMaximoUpload"];
            int valor = 3;
            Int32.TryParse(str, out valor);
            return valor;
        }
    }

    public static bool Debug
    {
        get
        {
            string str = ConfigurationManager.AppSettings["DebugMode"];
            bool val = true;
            Boolean.TryParse(str, out val);
            return val;
        }
    }
}